﻿using Catastrophe.BasePC.UI.UIMode;
using CefSharp.DevTools.CSS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Catastrophe.BasePC.UI.UI
{

    /// <summary>
    /// 词典编辑
    /// 1.身份
    /// 2.部门
    /// </summary>
    public partial class UcSysDictionary : UserControl
    {
        UcSysDepartmentModel model;
        public UcSysDictionary(string key)
        {
            InitializeComponent();
            model = this.DataContext as UcSysDepartmentModel;
            model.key = key;
            model.SeleceData.Execute(null);
        }

        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            model.Name = model.SysDictionaryEnity?.DicName;
            model.Value = model.SysDictionaryEnity?.DicValue;
        }
    }
}
